package org.smile.homework01.kevin.WithDrawMoney;

public class Commission implements Observer {
    private String name;
    private double amount;

    public Commission(String name){
        this.name = name;
    }

    @Override
    public void record(double amount){
        this.amount = amount;
        read();
    }

    public void read(){
        System.out.println(name + "审批金额：" + amount);
    }
}
